home *** CD-ROM | disk | FTP | other *** search
- 10 'ONEIF.BAS - A program to demonstrate a one-line IF statement
- 20 'From the GWBT04 (GW-BASIC Tutorial #4) lesson file
- 30 'Gets a number from the user, and prints a message if the number is LESS
- 40 'THAN TEN, otherwise just gives the number back.
- 50 '
- 60 'Start of main program:
- 70 INPUT "Enter a number between one and twenty";TESTNUMBER
- 80 IF TESTNUMBER < 10 THEN PRINT "YOUR NUMBER WAS LESS THAN TEN!"
- 90 PRINT "Your number was: ";TESTNUMBER
- 100 END
- 110 'End of program - ONEIF.BAS